-- GENERATED SPELL FOR [Deathforge Tinkerer] --


function spell0_19754(pUnit, Event) --@Create Deathforge Mine,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(38107,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_19754', 1, 1)
end

function spell1_19754(pUnit, Event) --@Shrapnel Bomb,n/a--
pUnit:FullCastSpellOnTarget(38753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19754', 11000, 1)
end

function Sorts_19754(pUnit, Event)
local choix_sorts_19754 = math.random(0, 1)
if choix_sorts_19754 == 0 then
pUnit:RegisterEvent('spell0_19754', 1, 1)
end
if choix_sorts_19754 == 1 then
pUnit:RegisterEvent('spell1_19754', 1, 1)
end
end

function mob19754_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19754', math.random(1500, 3000), 1)
end

function mob19754_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19754_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19754_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19754, 1, 'mob19754_Action')
RegisterUnitEvent(19754, 2, 'mob19754_Leave')
RegisterUnitEvent(19754, 3, 'mob19754_Kill')
RegisterUnitEvent(19754, 4, 'mob19754_Die')
